#include "myui.h"



MyUI::MyUI(QWidget *parent) : QWidget(parent)
{
    bt_width = 200;
    bt_weight = 36;
    show_push_button();
    //
    show_sugest_button();
    //t_push_button->move(0, ++y * bt_weight);
}


void MyUI::show_sugest_button()
{
    t_segest_button = new DSuggestButton("suggest_button", this);
    t_segest_button->setFixedSize(bt_width, bt_weight);
    t_segest_button->setEnabled(true);
    t_segest_button->move(0, 0);
    
}

void MyUI::show_push_button()
{
    t_push_button = new DPushButton("pushbutton", this);
    
    t_push_button->setFixedSize(bt_width, bt_weight);
    t_push_button->setEnabled(true);
    t_push_button->move(0, 36);

    connect(t_push_button, SIGNAL(clicked()), this, SLOT(ClickButton()));
}


void MyUI::ClickButton()
{
    t_push_button->setText("Clicked");
}
